package may.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/")
    public String index(){
        return "index";
    }
    @RequestMapping("/{path}.html")
    public String toPage(@PathVariable String path){
        return path;
    }

    @RequestMapping("/{path1}/{path2}.html")
    public String toPage2(@PathVariable String path1,@PathVariable String path2){
        return path1 + "/" + path2;
    }
}
